#  “显性守护者” by 阎兆珣 2020-7
# to mark the time on 'out.log' in different absolute PATH
# in accompany with autoXXX.sh
# put PATHs in () on the following line: e.g paths=(/root) or paths=(/root /home)
paths=(PATH1 PATH2)
n=${#paths[*]}

for ((i=0; i<n; i++)) ; do
  echo -e '\n' DATE `date +'%Y/%m/%d %a'` 'TIME' `date +%X` '\n' >> ${paths[i]}/out.log
done
